
package com.rf.richfitwheel.workflow.entity;

import com.fasterxml.jackson.annotation.JsonBackReference;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import lombok.Data;
import org.activiti.engine.history.HistoricProcessInstance;
import org.activiti.engine.history.HistoricTaskInstance;
import org.activiti.engine.repository.ProcessDefinition;
import org.activiti.engine.runtime.ProcessInstance;
import org.activiti.engine.task.Task;

@Data
public class WfTaskVo implements Serializable {
    private static final long serialVersionUID = 6165121688276341503L;
    private String businessKey;
    private String processKey;
    private String approveNo;//审批编号
    private String orgCode;
    private String processCode;
    private String processName;
    private String moduleType;
    private String queueName;
    private String taskState;
    private String taskId;
    private String taskKey;
    private String taskName;
    private String taskUrl;
    private String detailPage;
    private String title;
    private String startUserId;
    private String startUserName;
    private Date startTime;
    private String assign;
    private String owner;
    private String submitToPrev;
    private Map<String, Object> variables = new HashMap();


    private String processInstanceId;
    private String processDefinitionId;
    private String processDefinitionKey;
    private String supended;
    private String version;
    private String description;
    @JsonBackReference
    private Task task;
//    @JsonBackReference
//    private ProcessInstance processInstance;
//    @JsonBackReference
//    private HistoricProcessInstance historicProcessInstance;
//    @JsonBackReference
//    private HistoricTaskInstance historicTaskInstance;
//    @JsonBackReference
//    private ProcessDefinition processDefinition;

    public WfTaskVo() {
    }
}
